package handler

import (
	"gowork/memberGoKit/server/service"
	"gowork/memberGoKit/server/transport"
	httpTransport "github.com/go-kit/kit/transport/http"
	"gowork/memberGoKit/server/endpoint"
)

var msc service.MemberSriImp = service.MemberSriImp{}

func MemberInsert() *httpTransport.Server{
	
	endpInsert := endpoint.MemberInsertEnpoint(&msc)
	return httpTransport.NewServer(endpInsert, transport.DecodeMemberInsertRequest, transport.EncodeMemberResponse)
}

func MemberQuery() *httpTransport.Server{
	
	endpQuery := endpoint.MemberQueryEnpoint(&msc)
	return httpTransport.NewServer(endpQuery, transport.DecodeMemberQueryRequest, transport.EncodeMemberResponse)
}

